<!-- 级联组件 -->
<template>
  <el-cascader size="mini" />
</template>
<script>
import { getDepartmentAPI } from '@/api/department'
import { transListToTree } from '@/utils'
export default {
  data() {
    return {
      list: []
    }
  },

  created() {
    this.getDepartment()
  },
  methods: {
    // 获取部门列表数据
    async getDepartment() {
      await getDepartmentAPI()
    }
  }
}
</script>
